import React from 'react'
// ===================================================================== Temp
import FormModal from '#cpt/temp/FormModal'
// ===================================================================== declare
// ===================================================================== Lazy
// ===================================================================== component
class Index extends React.Component{
	state = {
		// 提交表单列表
		formData : [
			{ label: '最低温度',			name: 'start_temp', 	half:true,	type: 'number', required:true, max: 10 },
			{ label: '最高温度',			name: 'end_temp', 		half:true,	type: 'number', max: 10 },
			{ label: '保存时间(天)',		name: 'keep_time', 		half:true,	type: 'number', required:true, minValue: 1},
		]
	}
	
	open = param => {
		this.modal.open({ formRef: this.formRef })
		this.submit = param
	}
	
	render(){
		const { api } = this.props
		return FormModal.call(this,{ title: '修改', labelWidth:'s7', width:600, clear:true, api})
	}
}

export default Index